#include "com_renren_faceos_door_DoorJNI.h"
#include "./src/Interface.h"


jint JNICALL Java_com_renren_faceos_door_DoorJNI_init
(JNIEnv *env, jobject obj)
{
	
	


int ret = LOGINIT("mnt/sdcard/rrzn/log1.txt");



LOGE("AL_InitAll before");
    //AL_InitAll();
LOGE("AL_InitAll after");
    return ret;
}

/*
 * Class:     com_renren_faceos_door_DoorJNI
 * Method:    checkStatue
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_com_renren_faceos_door_DoorJNI_checkStatue
        (JNIEnv *env, jobject obj, jint index)
{

    return AL_CheckDoorStatus(index);
}

/*
 * Class:     com_renren_faceos_door_DoorJNI
 * Method:    open
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_com_renren_faceos_door_DoorJNI_open
        (JNIEnv *env, jobject obj, jint index)
{

    return AL_OpenDoor(index);
}

/*
 * Class:     com_renren_faceos_door_DoorJNI
 * Method:    close
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_com_renren_faceos_door_DoorJNI_close
        (JNIEnv *env, jobject obj, jint index)
{
    return AL_CloseDoor(index);
}

/*
 * Class:     com_renren_faceos_door_DoorJNI
 * Method:    closeAllDoor
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_com_renren_faceos_door_DoorJNI_closeAllDoor
        (JNIEnv *env, jobject obj)
{
    return AL_CloseAllDoor();
}


JNIEXPORT jint JNICALL Java_com_renren_faceos_door_DoorJNI_uninit
        (JNIEnv *env, jobject obj)
{

    return AL_EndAll();
}
